package com.github.demo.circularDependency;

import com.github.jsoncat.annotation.ioc.Autowired;
import com.github.jsoncat.annotation.ioc.Component;

@Component(name = "CircularDependencyAImpl")
public class CircularDependencyAImpl implements CircularDependencyA {

    @Autowired
    CircularDependencyB testB;

    @Override
    public CircularDependencyB getCircularDependencyB() {
        return testB;
    }

    @Override
    public String testA() {
        return testB.printB();
    }

    @Override
    public String printA() {
        return "CircularDependencyAImpl A";
    }
}
